package org.jeecg.modules.basic.material.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @Description: 物料绑定仓库设置信息
 * @Author: jeecg-boot
 * @Date:   2023-11-24
 * @Version: V1.0
 */
@Data
@TableName("wms_basic_material_stock_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="wms_basic_material_stock_info对象", description="物料绑定仓库设置信息")
public class WmsBasicMaterialStockInfo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**逻辑删除(0-正常,1-已删除)*/
	@Excel(name = "逻辑删除(0-正常,1-已删除)", width = 15)
    @ApiModelProperty(value = "逻辑删除(0-正常,1-已删除)")
    @TableLogic
    private Integer delFlag;
	/**租户id*/
	@Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private String tenantId;
	/**所属物料id*/
	@Excel(name = "所属物料id", width = 15)
    @ApiModelProperty(value = "所属物料id")
    @NotNull(message = "所属物料id不可为空")
    private String wmsBasicMaterialId;
	/**仓库*/
	@Excel(name = "仓库", width = 15)
    @ApiModelProperty(value = "仓库")
    private String warehouseId;
	/**库区*/
	@Excel(name = "库区", width = 15)
    @ApiModelProperty(value = "库区")
    private String warehouseAreaId;
	/**安全库存*/
	@Excel(name = "安全库存", width = 15)
    @ApiModelProperty(value = "安全库存")
    private BigDecimal safeInventory;
	/**最大库存*/
	@Excel(name = "最大库存", width = 15)
    @ApiModelProperty(value = "最大库存")
    private BigDecimal maxInventory;
	/**最小库存*/
	@Excel(name = "最小库存", width = 15)
    @ApiModelProperty(value = "最小库存")
    private BigDecimal minInventory;
}
